package dataBase;

import java.util.ArrayList;
import java.util.List;

public class User {
	String email;// this is the user id
	String password;
	boolean isAdmin;
	String firstName, lastName;
	

	public User(String email, String password, boolean isAdmin, String firstName, String lastName) {
		this.email = email;
		this.password = password;
		this.isAdmin = isAdmin;
		this.firstName = firstName;
		this.lastName = lastName;
	}
	public List<String> getUserInfo(){
		List<String> userInfo = new ArrayList<String>();
		userInfo.add(email);
		userInfo.add(firstName);
		userInfo.add(lastName);
		userInfo.add(String.valueOf(isAdmin));
		
		return userInfo;
	}
	public List<String> getUserPassword(){
		List<String> userPassword = new ArrayList<String>();
		userPassword.add(email);
		userPassword.add(password);
		
		return userPassword;
	}
	public String getEmail() {
		return email;
	}
}
